package com.example.demo.mingling;

public class LightOnComand implements Comand {
    LightReceiver lightReceiver;

    public LightOnComand(LightReceiver lightReceiver) {
        this.lightReceiver = lightReceiver;
    }

    @Override
    public void excute() {
        lightReceiver.on();
    }

    @Override
    public void undo() {
        lightReceiver.off();
    }
}
